package com.ns.core.vo.bs;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 公共基础信息
 *
 * @author liao.wei
 * @since 2023/11/9
 */
@Getter
@Setter
public class BasicVO implements Serializable {

    @Serial
    private static final Long serialVersionUID = 1L;
    /**
     * 序号
     */
    private Long sort;

    /**
     * 描述(备注)
     */
    private String note;

    /**
     * 状态 0 停用 1 启用
     */
    private Integer status;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 创建人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long creator;
}
